<?php

	include('dtc_global.php');
	$giohang = $dtc_do->load('class_giohang');
	$sanpham = $dtc_do->load('class_sanpham');
	$member = $dtc_do->load('class_member');
	$shop = $dtc_do->load('class_shop');
	
		//echo $member->set_auth($member->user_login('duyktest', 'duykpro'));
		echo $shop->san_pham_shop_rieng(1,4);
		//echo $dtc_do->load('class_member')->userid;				
?>

<?php
exit;
?>

<?php
	include('dtc_global.php');
		$member = $dtc_do->load('class_member');
		$member->set_auth($member->user_login('DuyKtest', 'duykpro'));
	$class_sanpham = $dtc_do->load('class_sanpham');
	if($_POST){
		$post=$class_sanpham->post();
		$action=$class_sanpham->dang_san_pham($post, 'uploads/');
		if($action['run']==false){
			echo $action['log'];
		}
	}else{
		
		echo $member->check_login();
	}
		
?>

<meta charset="utf-8" />
<form action="test.php" method="post" enctype="multipart/form-data">
<input type=text name="user_id" placeholder=userid /></br>
<input type="text" name="tieu_de" placeholder="tieu de" /></br>
<input type="text" name="noi_dung" placeholder="noi dung" /></br>
<input type="text" name="gia" placeholder="gia" /></br>
<input type="text" name="gia_thitruong" placeholder="gia thi truong" /></br>
<input type="text" name="noi_rao" placeholder="noi rao" /></br>
<input type="text" name="main_cat" placeholder="main cat" /></br>
<input type="text" name="sub1" placeholder="sub1" /></br>
<input type="text" name="sub2" placeholder="sub2" /></br>
<input type="text" name="duyet" placeholder="duyet" /></br>
<input type="text" name="link" placeholder="link" /></br>
<input type="text" name="datepost" placeholder="datepost" /></br>
<input type="file" name="minh_hoa" /></br>
<input type=submit value=test!!! />

</form>

<?php
$_SESSION['test'] = 'fucking';
echo $_SESSION['test'];
?>